cmake_minimum_required(VERSION 3.10)

project(core VERSION 1.0.0 LANGUAGES CXX)

include(GNUInstallDirs)
include(NOSAL/nosal)
include(NOSAL/toolchain_qnx700_aarch64)

nosal_add_library(core
    SOURCES
        src/abort.cpp
    LIBS
    INCLUDES 
        $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
    DEFINITIONS
    OPTIONS -Wno-noexcept-type
)

if(NOSAL_ENABLE_TESTS)
	#enable_testing()
	#find_package(GTest REQUIRED)
	add_subdirectory(test)
endif()

